package main

// 二进制数组，统计最大连续1个数
func findMaxConsecutiveOnes(nums []int) int {
	cur:=0
	max := 0 
	for _,num := range nums{
		cur = (cur+num)*num  // 等于遇1+1  遇到0清零
		if cur>max{
			max = cur
		}
	}
	return max
}